package lab02.test17;

public class Test {
    public static void main(String[] args) {


        int[] numbers = new int[5];

        //ctrl+d  ;复制一行
        //ctrl+x  ;删除一行
        numbers[0] = 12;
        numbers[1] = 9;
        numbers[2] = 26;
        numbers[3] = 54;
        numbers[4] = 99;
        //打印
        System.out.println();
        //下标：0-4
        int index;

        //5<5
        for (index = 0; index < numbers.length; index++) {

        }


        int sum = 0;
        int i;
        for (i = 0; i < numbers.length; i++) {
            sum += numbers[i];
        }
        System.out.println("总和是：" + sum);
    }
}